package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.Meeting;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * meetingMapper接口
 * 
 * @author ruoyi
 * @date 2025-08-05
 */
public interface MeetingMapper 
{
    Object getMaxNumber();

    List<Map<String, Object>> selectMeetingaddress();

    List<Map<String, Object>> selectMeetingfield();

    List<Map<String,Object>> selectValid(@Param("conferencefield") String ppconferencefield, @Param("conferencetitle") String ppconferencetitle, @Param("conferenceaddress") String ppconferenceaddress,
                                                           @Param("meetingtime") String ppmeetingtime, @Param("meetingendtime") String ppmeetingendtime,@Param("zhuangtai") int ppzhuangtai,
                                                           @Param("paixu") String pppaixu, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countValid(@Param("conferencefield") String ppconferencefield, @Param("conferencetitle") String ppconferencetitle, @Param("conferenceaddress") String ppconferenceaddress,
                                                           @Param("meetingtime") String ppmeetingtime, @Param("meetingendtime") String ppmeetingendtime,@Param("zhuangtai") int ppzhuangtai);

    List<Meeting> selectAll(@Param("conferencetitle") String ppconferencetitle, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countAll(@Param("conferencetitle") String ppconferencetitle);
    /**
     * 查询meeting
     * 
     * @param id meeting主键
     * @return meeting
     */
    public Meeting selectMeetingById(String id);

    /**
     * 查询meeting列表
     * 
     * @param meeting meeting
     * @return meeting集合
     */
    public List<Meeting> selectMeetingList(Meeting meeting);

    /**
     * 新增meeting
     * 
     * @param meeting meeting
     * @return 结果
     */
    public int insertMeeting(Meeting meeting);

    /**
     * 修改meeting
     * 
     * @param meeting meeting
     * @return 结果
     */
    public int updateMeeting(Meeting meeting);

    /**
     * 删除meeting
     * 
     * @param id meeting主键
     * @return 结果
     */
    public int deleteMeetingById(String id);

    /**
     * 批量删除meeting
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMeetingByIds(String[] ids);
}
